﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using STLGROUP.Layers.Presentations.FormBase;
using STLGROUP.Layers.Common;
using STLGROUP.Layers.DataAccessLayers;
using STLGROUP.Layers.BLL;

namespace QuanLyBanHang
{
    public partial class frmNhomNguoiDung : frmCatalogBase
    {
        #region Constructors

        public frmNhomNguoiDung()
        {
            InitializeComponent();
        }

        #endregion

        #region Protected methods

        protected override void LoadData()
        {
            this._bindingSource.DataSource = Cache.Context.ACL_NhomNguoiDung;
            this.dgvUserGroup.DataSource = _bindingSource;
            base.LoadData();
        }

        protected override void AddDataBinding()
        {
            txtIDNhom.DataBindings.Add(Const.BIND_TEXT, _bindingSource, "IDNhomNguoiDung", true);
            txtTenNhom.DataBindings.Add(Const.BIND_TEXT, _bindingSource, "TenNhom", true);
            txtGhiChu.DataBindings.Add(Const.BIND_TEXT, _bindingSource, "GhiChu", true);

            base.AddDataBinding();
        }

        #endregion
    }
}
